﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using MutationTestingTool.Model.Model;

namespace MutationTestingTool.Tests.Model
{
    [TestFixture]
    [Category("Model")]
    public class MutantTest
    {
        [Test]
        public void MutantInitialize()
        {
            Mutant target = new Mutant();
            Mutation mutation = new Mutation();
            mutation.OriginalValue = "<";
            mutation.ReplaceValue = ">";

            target.Mutation = mutation;
            target.OriginalLine = "If";
            target.OriginalLineNumber = 10;

            Assert.IsNotNull(target);
            Assert.IsTrue(mutation.OriginalValue == target.Mutation.OriginalValue && mutation.ReplaceValue == target.Mutation.ReplaceValue);
            Assert.AreEqual("If", target.OriginalLine);
            Assert.AreEqual(10, target.OriginalLineNumber);
        }
    }
}
